#ifndef JLOGWIDGET_H
#define JLOGWIDGET_H

#include <QTreeWidget>
#include "JLog.h"

//! display widget for the log
class JLogWidget : public QTreeWidget
{
	Q_OBJECT

public:
	JLogWidget(QWidget *parent);
	~JLogWidget();

public slots:
	void updateLog(QList<JLogEntry> *);

private:
	QTreeWidgetItem *m_pItem;
	QTreeWidgetItem *m_pTopItem;
	unsigned int m_iEntryCount;
	QMap<unsigned short, QIcon> m_IconMap;
	//QList<JLogEntry> mLogEntryList;
};

#endif // JLOGWIDGET_H
